Let’s explore how billing works
in Google Cloud. Billing is established at the project level
of the Google Cloud resource hierarchy. This means that when you define a Google Cloud
project, you link a billing account to it. This billing account is where you will configure
all your billing information, including your payment option. A billing account can be linked to zero or
more projects, but projects that aren’t linked to a billing account can only use free
Google Cloud services. Billing accounts are charged automatically
and invoiced every month or at every threshold limit. Billing subaccounts can be used
to separate billing by project. Some Google Cloud customers who resell Google Cloud
services use sub accounts for each of their own clients. Now, you’re probably thinking, “How can
I ensure that I don’t accidentally face a big Google Cloud bill?” We provide a few tools to help. You can define budgets at the billing account
level or at the project level. A budget can be a fixed limit, or it can be
tied to another metric; for example, a percentage of the previous month’s spend. To be notified when costs approach your budget
limit, you can create an alert. For example, with a budget limit of $20,000
and an alert set at 90%, you’ll receive a notification alert when your expenses
reach $18,000. Alerts are generally set at 50%, 90% and 100%,
but can also be customized. Reports is a visual tool in the Google Cloud
console that lets you monitor expenditure based on a project or services. Finally, Google Cloud also implements quotas,
which are designed to prevent the over-consumption of resources because of an error
or a malicious attack. This way both account owners and the Google Cloud
community as a whole are protected. There are two types of quotas: rate quotas
and allocation quotas. Both are applied at the project level. Rate quotas reset after a specific time. For example, by default, the GKE service implements
a quota of 3,000 calls to its API from each Google Cloud project every 100 seconds. After that 100 seconds, the limit is reset. Allocation quotas govern the number of resources
that you can have in your projects. For example, by default, each Google Cloud
project has a quota that allows it no more than five Virtual Private Cloud networks. Although all projects start with the same
quotas, you can change some of them by requesting an increase from Google Cloud Support.